<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.com">
<head>
    <meta charset="UTF-8">
    <title>分类展示页面</title>
    <link rel="stylesheet" type="text/css" media="screen" th:href="@{/css/admin.css}"   href="../static/css/admin.css" >
</head>
<body>
<table id="table_list">
    <tr id="title">
        <th>分类编号</th>
        <th>分类名称</th>
        <th>分类操作</th>
    </tr>
    <th:block th:each="c : ${categoryList}">
        <tr>
            <td th:text="${c.id}"></td>
            <td th:text="${c.categoryname}"></td>
            <th >
                <a th:href="@{/category/category_update(id=${c.id})}">修改</a>
            </th>
        </tr>
    </th:block>
    <tr>
        <td>
            <a href="../category/category_show">添加分类</a>

        </td>

    </tr>
</table>
</body>
</html>